<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>沐言科技：www.yootk.com</title>
    <%
        String path = request.getContextPath();
        String basePath = request.getScheme() + "://"
                + request.getServerName() + ":" + request.getServerPort()
                + path + "/";
    %>
    <base href="<%=basePath%>">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <link rel="icon" href="images/favicon.ico" type="image/x-icon" />
    <script type="text/javascript" src="jquery/jquery.min.js"></script>
    <script type="text/javascript" src="jquery/jquery.validate.min.js"></script>
    <script type="text/javascript" src="jquery/additional-methods.min.js"></script>
    <script type="text/javascript" src="jquery/Message_zh_CN.js"></script>
    <script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="bootstrap/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
    <script type="text/javascript" src="bootstrap/js/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
    <link href="bootstrap/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
    <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css" />
    <script type="text/javascript" src="js/index.js"></script>
</head>
<body>
<div>&nbsp;</div>
<div class="container">
    <div class="panel panel-info">
        <div class="panel-heading">
            <strong><img src="images/logo.png" style="height: 30px;">&nbsp;MVC设计模式</strong>&nbsp;&nbsp;&nbsp;
        </div>
        <div class="panel-body">
            <table class="table table-striped table-bordered table-hover">
                <thead>
                <tr id="message-title"><td>消息ID</td><td>消息标题</td><td>消息内容</td></tr>
                </thead>
                <tbody id="messageBody">
                <c:forEach items="${messageList}" var="msg">
                    <tr id="message-${msg.id}"><td>${msg.id}</td><td>${msg.title}</td><td>${msg.content}</td></tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
        <div class="panel-footer">
            <div style="text-align:right;">
                <strong>沐言科技（www.yootk.com） —— 新时代软件教育领导品牌</strong>
            </div>
        </div>
    </div>
</div>
</body>
</html>
